package com.ihrm.common.exception;

import com.ihrm.common.entity.ResultCode;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @auther 14632
 * @date 2021/11/21 22:15
 *
 *  自定义异常
 */
@Getter
public class CommonException extends Exception{

    @Autowired
    private ResultCode resultCode;

    public CommonException(ResultCode resultCode){
        this.resultCode = resultCode;
    }
}
